<template>
  <div>
    <h1>{{msg}}</h1>
    <h2>{{obj.name}}</h2>
    <h3>{{obj.age>=18?'韩枫成年了':'韩枫未成年'}}</h3>
    <a v-bind:href="url">天星社区</a>
    <img :src="img" alt="">
  </div>
</template>

<script>
export default {
  data(){
    return {
      msg:'hello vue',
      obj:{
        name:'韩枫爱偷懒',
        age:18,
      },
      url:'https://www.txltw.com/',
      img:'https://www.txltw.com/wp-content/uploads/2022/09/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_202209241302211.webp'
    }
  }
};
</script>

<style lang="less">
</style>